package com.jbp.model;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 留言板(Bbs)实体
 * @author cc
 * @since 2020-08-28 18:11:58
 */
@ApiModel(value="Bbs")
@Data
public class Bbs implements Serializable {
    private static final long serialVersionUID = 1L;
        
    
    private Integer id;

    //用户id
    @ApiModelProperty(value="用户id")
    private Integer userId;

    @ApiModelProperty(value="用户昵称")
    @TableField(exist = false)
    private String userName;
    @ApiModelProperty(value="用户性别")
    @TableField(exist = false)
    private String userSex;
    @ApiModelProperty(value="用户头像")
    @TableField(exist = false)
    private String userImg;
    @ApiModelProperty(value="用户等级")
    @TableField(exist = false)
    private Integer userLevel;
    @TableField(exist = false)
    private boolean userLevelOn;

    //内容
    @ApiModelProperty(value="内容")
    private String content;

    //是头条 1 是， 0否
    @ApiModelProperty(value="是头条 1 是， 0否")
    private Integer top;

    //创建时间
    @ApiModelProperty(value="创建时间")    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

}